package day4;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class MapTest {
    public static void main(String[] args) {
        Map m=new HashMap();
        m.put("cat","猫");
        m.put("dog","狗");
        m.put("tiger","老虎");
        m.put("goldenfish","金鱼");
        m.put("tiger","华南虎");
        System.out.println(m.size());
        System.out.println(m);
        Object dog = m.get("dog");
        System.out.println(dog);
        Object fish = m.get("fish");
        System.out.println(fish);
    }
}
